package com.spring.dao.impl;

import org.springframework.stereotype.Component;

import com.spring.dao.LogDAO;
import com.spring.model.Log;

@Component("logDAO")
public class LogDAOImpl extends SuperDAO implements LogDAO {

	private int daoId;
	
	public void save(Log log){
		this.getHibernateTemplate().save(log);
		// throw new RuntimeException("log error!");
	}
	
	public int getDaoId() {
		return daoId;
	}

	public void setDaoId(int daoId) {
		this.daoId = daoId;
	}

	public String toString() {
		return "userDAOId = " + daoId;
	}

	public void delete() {
		System.out.println("user deleted!");
	}
}
